package org.crud4j.core.test;

import org.crud4j.core.annotation.CrudBean;
import org.crud4j.core.annotation.CrudBrowsable;
import org.crud4j.core.annotation.CrudBrowseFilter;
import org.crud4j.core.annotation.CrudEditDisabled;
import org.crud4j.core.annotation.CrudId;

@CrudBean
public class Student {

	private String id;

	private String name;

	private Teacher teacher;

	private Long socialSecurity;

	@CrudId
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@CrudBrowsable(1)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@CrudBrowseFilter
	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	@CrudEditDisabled
	public Long getSocialSecurity() {
		return socialSecurity;
	}

	public void setSocialSecurity(Long socialSecurity) {
		this.socialSecurity = socialSecurity;
	}

}
